package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsAdmin;

import java.util.List;

/**
 * @author zhaojian
 */
public interface AdminService {

    /**
     * 根据用户名查询用户集合
     * @param userName
     * @return
     */
    public List<DtsAdmin> findAdminByUserName(String userName);

    IPage<DtsAdmin> findByPage(Integer page, Integer limit, String username, String sort, String order);

    DtsAdmin insertAdmin(DtsAdmin dtsAdmin);

    int removeAdmin(int id);

    int updateAdmin(DtsAdmin dtsAdmin);

    List<DtsAdmin> findAllAdmin();
}
